<template>
	<div class="home_h">
		<header class="m_header">
			<div class="m_header_box" id="my_search">
				<!--<a href="#" class="icon_logo"></a>-->
				<form action="javascript:void(0)">
					<span @click="goSearch()" class="icon_search"></span>
					<input @keyup.enter="goSearch()" v-model="searchVal" type="search" class="search" placeholder="点击搜索">
				</form>
				<!--<router-link to="/login" class="logo_btn">登录</router-link>-->
			</div>
		</header>
	</div>
</template>
<script>
	export default {
		data() {
			return {
				searchVal: ''
			}
		},
		methods: {
			goSearch() {
				let _this = this
				this.$router.push({
					path: '/wx/searchPage',
					query: {
						searchVal: _this.searchVal
					}
				});
			}
		}
	}
</script>